<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- <script type="text/javascript" src="${ctx }/js/jquery-1.7.1.min.js" charset="UTF-8"></script> --%>
<script src="${ctx }/js/jquery-1.11.1.min.js"></script>
<script src="${ctx }/js/jquery.form.js"></script>
<script type="text/javascript" src="${ctx }/js/jquery.dsme.js" charset="UTF-8"></script>
<script type="text/javascript" src="${ctx }/js/jquery.cookie.js" charset="UTF-8"></script>

<%-- <script type="text/javascript" src="${ctx }/js/json2.js" charset="UTF-8"></script> --%>

<script type="text/javascript">
var ctx                =   "${pageContext.request.contextPath}"   ;

function moveRe(){
	<c:if test="${'N'==pensionInfo.reservation_yn}">
	alert("예약은 전화로만 가능합니다");
	return false;
	</c:if>
	var date=new Date();
	location.href="./pere200Q.do?p_id=${param.p_id }&reservation_dt="+date.toString("yyyyMMdd");
}

function moveRe2(){
	var date=new Date();
	location.href="./pere1000Q.do?p_id=${param.p_id }&reservation_dt="+date.toString("yyyyMMdd");
}

function moveRe3(){
	var date=new Date();
	location.href="./pere800Q.do?p_id=${param.p_id }&reservation_dt="+date.toString("yyyyMMdd");
}

//입금대기현황
function moveRe4(){
// 	location.href="./pere700Q.do?p_id=${param.p_id }&reservation_dt=${param.reservation_dt}";
	location.href="./pere700Q.do?p_id=${param.p_id }";
}
//예약완료 현황\
function moveRe5(){
	
	location.href="./pere700Q.do?p_id=${param.p_id }&reservation_dt=${param.reservation_dt}&rm_status=C";
}

//환불요청현황
function moveRe6(){
	
	location.href="./pere701Q.do?p_id=${param.p_id }&reservation_dt=${param.reservation_dt}";
}
//종합취소현황
function moveRe7(){
	
	location.href="./pere703Q.do?p_id=${param.p_id }&reservation_dt=${param.reservation_dt}";
}
//예약종료현황
function moveRe8(){
	
	location.href="./pere704Q.do?p_id=${param.p_id }&reservation_dt=${param.reservation_dt}";
}

//이미지 변경
var globalImg="";
function changeImg(me,type){
	if("on"==type){
		globalImg=$(me).find("img:eq(0)").attr("src");
		//on 선택되었을때
		if(globalImg.indexOf("o\.jpg")>-1){
			
		}else{
			var imgsrc = globalImg.replace("\.jpg","o\.jpg");
			$(me).find("img:eq(0)").attr("src",imgsrc);
		}
	}else{
		//out일때
		$(me).find("img:eq(0)").attr("src",globalImg);
	}
}

// $('html').css("opacity",0.4);
</script>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-33343219-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>